/*
 * @Author: your name
 * @Date: 2021-05-11 17:47:02
 * @LastEditTime: 2021-05-11 18:18:23
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue01d:\HTML001\布局小技巧\烟雾飘散\烟雾飘散.js
 */
const text = document.querySelector(".text")
text.innerHTML= text.textContent.replace(/\S/g,"<span>$&</span>")

const letn = document.querySelectorAll("span")
for(let i = 0;i<letn.length;i++){
    letn[i].addEventListener("mousemove",function(){
        letn[i].classList.add("active")
        setTimeout(function(){
            letn[i].classList.remove("active")
        }, 2000);
    })
}
